<template>
    <div>
        <p style="color: red">{{doc.title}}</p>
        <!-- 通过sync简写假双向绑定-->
        <child :title.sync="doc.title"></child>
    </div>
</template>
<script>
    import child from "@/components/child";

    export default {
        components: {
            child
        },
        created() {
            var a = 'asd'
            var b = 2313
            var c = {a, b}
            console.log(c)
        },
        data() {
            return {
                doc: {
                    title: '123'
                }
            }
        }
    }
</script>